<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8" />
</head>
<body>
<div th:fragment="tableBlock" class="widget-content">
    <div class="table-responsive">
        <table id="datatable" class="table table-striped data-table table-bordered" width="100%">
        <thead>
        <tr>
            <th class="table-head" id="userName">用户名</th>
            <th class="table-head" id="email">email</th>
            <th class="table-head" id="phone">移动电话</th>
            <th class="table-head" id="fixedPhone">固定电话</th>
            <th class="table-head" id="realName">真实姓名</th>
            <th class="table-head" id="unit">所属部门</th>
            <th class="table-head" id="gender">性别</th>
            <th class="table-head" id="areaName">区域</th>
            <th class="table-head" id="estateName">分期</th>
            <th class="table-head" id="">操作</th>
        </tr>
        </thead>

        <tbody>
        <tr  th:each="user : ${formBean.list}">
            <td class="table-content" th:text="${user.userName}"></td>
            <td class="table-content" th:text="${user.email}"></td>
            <td class="table-content" th:text="${user.phone}"></td>
            <td class="table-content" th:text="${user.fixedPhone}"></td>
            <td class="table-content" th:text="${user.realName}"></td>
            <td class="table-content" th:text="${user.unit}"></td>
            <td class="table-content" >
                <div th:switch="${user.gender}">
                    <p th:case="1">先生</p>
                    <p th:case="2">女士</p>
                </div>
            </td>
            <td class="table-content" th:text="${user.areaGuid}"></td>
            <td class="table-content" th:text="${user.estateGuid}"></td>
            <td>
                <div class="td-operate">
                    <a href="#" th:onclick="'javascript:editSubmitInfo(\'users\',\''+${user.guid}+'\');'" class="td-edit">编辑</a>
                    <a href="#" th:onclick="'javascript:delConfirm(\'users\',\''+${user.guid}+'\');'" class="td-del">删除</a>
                    <a href="#"  th:onclick="'javascript:detailSubmitInfo(\'users\',\''+${user.guid}+'\');'" class="td-info" >详情</a>
                    <!--shiro:hasPermission="/users/info"-->
                </div>
            </td>
        </tr>
        </tbody>
    </table>
    </div>
</div>

</body>
</html>